package com.onlinetask.common.exception;

import org.apache.log4j.Logger;

/**
 * Created with IntelliJ IDEA.
 * User: liyuanliu
 * Date: 13-11-18
 * Time: 下午1:44
 * To change this template use File | Settings | File Templates.
 */
public class SysException extends Exception{

    private static Logger logger = Logger.getLogger(SysException.class);

    public SysException(){ super(); }

    public SysException(String message){
        super(message);
    }

    public SysException(String message, Throwable e){
        super(message, e);
    }

    public SysException(int errorCode, String message, Throwable e){
        logger.error("系统错误编码："+errorCode);
        logger.error("系统错误信息："+message);
        logger.error("详细错误："+errorCode+"-"+message, e);
    }
}
